import{D as e,On as t,Yt as n,_ as r,b as i,g as a,k as o,mt as s,o as c,qt as l,tr as u,y as d}from"./CIxmKYxc4tZcJF.js";import{b as f}from"./DWlEJV-j33On0I.js";import"./DcwiUW8R1GKRvl.js";import{i as p}from"./CYwLZBMi38CYr6.js";import{t as m}from"./DJeJfhW-4iv1Az.js";import{c as h}from"./BbxvatETxeTHf.js";import"./C3Xax3Tz4BagVD.js";var g={value:!1},_={value:!0},v={value:!1},y={value:!0},b=o({__name:`app-settings-content`,setup(o){let b=h(),x=[{id:`deu`,title:`Deutsch`},{id:`eng`,title:`English`},{id:`fra`,title:`Français`},{id:`ita`,title:`Italiano`},{id:`spa`,title:`Español`},{id:`por`,title:`Português`},{id:`nld`,title:`Nederlands`}],S=a({get:()=>Object.entries(b.value?.lOcrLanguages??{}).filter(([,e])=>e).map(([e])=>e),set:e=>{b.value&&(b.value.lOcrLanguages=Object.fromEntries(e.map(e=>[e,!0])))}});return(a,o)=>(s(),i(c,null,[r(`h3`,null,u(a.$t(`settings.content.title`)),1),t(b)?(s(),i(c,{key:0},[e(t(m),{title:a.$t(`settings.content.ocrEnabled`),description:a.$t(`settings.content.ocrEnabledDesc`)},{default:l(()=>[n(r(`select`,{"onUpdate:modelValue":o[0]||=e=>t(b).lOcrEnabled=e,class:`oui-select`},[r(`option`,g,u(a.$t(`settings.content.off`)),1),r(`option`,_,u(a.$t(`settings.content.on`)),1)],512),[[f,t(b).lOcrEnabled]])]),_:1},8,[`title`,`description`]),e(t(p),{modelValue:S.value,"onUpdate:modelValue":o[1]||=e=>S.value=e,items:x,title:a.$t(`settings.content.ocrLanguages`),description:a.$t(`settings.content.ocrLanguagesDesc`),placeholder:a.$t(`settings.content.ocrLanguagesPlaceholder`)},null,8,[`modelValue`,`title`,`description`,`placeholder`]),e(t(m),{title:a.$t(`settings.content.debugTextLayer`),description:a.$t(`settings.content.debugTextLayerDesc`)},{default:l(()=>[n(r(`select`,{"onUpdate:modelValue":o[2]||=e=>t(b).lDebugTextLayer=e,class:`oui-select`},[r(`option`,v,u(a.$t(`settings.content.off`)),1),r(`option`,y,u(a.$t(`settings.content.on`)),1)],512),[[f,t(b).lDebugTextLayer]])]),_:1},8,[`title`,`description`])],64)):d(``,!0)],64))}});export{b as default};